package com.jerry.alibaba.transaction.service;

import com.jerry.alibaba.transaction.entity.Storage;

import java.util.List;

public interface StorageService {

    //扣减库存
    void decrease(Long productId, Integer count);

    int create(Storage storage);

    Storage getById(Long id);

    List<Storage> getList();

}
